package com.ljj.examisto.data.item

enum class RemindType {
    NOTIFICATION,
    ALARM;

    companion object {
        fun fromString(value: String): RemindType {
            return try {
                RemindType.valueOf(value.uppercase())
            } catch (e: IllegalArgumentException) {
                throw IllegalArgumentException("没有找到对应的提醒类型: $value")
            }
        }
    }
}